#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstdlib>

int find_shuixian();

int main()
{
	find_shuixian();
	return 0;	
}

int find_shuixian()
{
	for (int i=100;i<=999;i++)
	{
		int a=i/100;
		int b=(i-a*100)/10;
		int c=(i-b*10-a*100);
		if (pow(a,3)+pow(b,3)+pow(c,3)==i) cout << i <<"  ";
	}
	return 0;
}

